package com.guigu.www.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yb
 * @since 2021-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TQuestionAnwser extends Model<TQuestionAnwser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "qaid", type = IdType.AUTO)
    private Integer qaid;
    /**
     * 会员id
     */
    private Integer tMemberId;
    /**
     * 题目id
     */
    private Integer tBankId;
    /**
     * 问卷id
     */
    private Integer questid;
    /**
     * 回答的答案
     */
    private Integer anwser;

    @TableField(exist = false)
    private TQuestionBank bank;

    @Override
    protected Serializable pkVal() {
        return this.qaid;
    }

}
